package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 位置历史记录对象 LocationHistory
 * 
 * @author ruoyi
 * @date 2024-09-24
 */
public class LocationHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录标识 */
    private Long recordId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String userId;

    /** 服务人员ID */
    @Excel(name = "服务人员ID")
    private String providerId;

    /** 历史位置 */
    @Excel(name = "历史位置")
    private String location;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date timestamp;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setProviderId(String providerId) 
    {
        this.providerId = providerId;
    }

    public String getProviderId() 
    {
        return providerId;
    }
    public void setLocation(String location) 
    {
        this.location = location;
    }

    public String getLocation() 
    {
        return location;
    }
    public void setTimestamp(Date timestamp) 
    {
        this.timestamp = timestamp;
    }

    public Date getTimestamp() 
    {
        return timestamp;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("userId", getUserId())
            .append("providerId", getProviderId())
            .append("location", getLocation())
            .append("timestamp", getTimestamp())
            .toString();
    }
}
